<template>
    <div>
        <el-dialog
            :visible.sync="is_show"
            title="订单详情"
            center
        ></el-dialog>
    </div>
</template>

<script>
export default {
    data() {
        return {
            is_show: false,
            order_id: null
        }
    },

    methods: {
        async showOn(id) {
            this.order_id = id
            await this.getOrderInfo()
            this.is_show = true
        },
        getOrderInfo() {
            this.$axios.get(`/api/software/${this.order_id}/show`).then(res => {
                if (res.data.code == 200) {
                    console.log(res)
                } else {
                    this.$message({
                        type: 'error',
                        message: res.data.message
                    })
                }
            }).catch(e => {
                console.log(e)
            })
        }
    }
}
</script>

<style lang="less" scoped>

</style>
